package com.test.entity;

import com.baomidou.mybatisplus.annotation.Version;
import lombok.Data;

/**
 * @author 3489309323@qq.com
 * @create 2020-07-01-17:08
 */
@Data
public class Product {
  private Long id;
  private String name;
  private Integer price;
  @Version //←注意这个注解 要使用mp的乐观锁这是必须的
  private Integer version; //←
}
